package com.demo.mapper;

import com.demo.entity.Answer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.query.AnswerVOQuery;
import com.demo.vo.AnswerVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Zeng
 * @since 2022-03-23
 */
public interface AnswerMapper extends BaseMapper<Answer> {

    List<AnswerVO> queryAnswersByQuestionId(Map<String, Object> paramMap);

    List<AnswerVO> queryAnswersByUserId(Integer userId);

    AnswerVO getAnswerVO(AnswerVOQuery answerVOQuery);
}
